/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package universityModel.person;

/**
 *
 * @author Дмитрий
 */
public class StudyPlace{
	private String univercity;
	private String faculty;
	
	public StudyPlace(String univer, String faculty) {
		this.univercity = univer;
		this.faculty = faculty;
	}
	
	public StudyPlace(StudyPlace studyInfo) {
		univercity = studyInfo.getUnivercity();
		faculty = studyInfo.getProffesion();
	}
	
	public String getUnivercity() {
		return univercity;
	}
	
	public String getProffesion() {
		return faculty;
	}
	
         @Override
	 public String toString() {
		 return  "Univercity: " + univercity + 
                         "\nFaculty: " + faculty;
	 }
 }

